import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';


class CommonSwitch extends StatelessWidget {
   final defValue ;
  const CommonSwitch({Key? key,this.defValue = false,}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return defaultTargetPlatform == TargetPlatform.android ? 
     Switch(value: defValue, onChanged: (val){},)
    : CupertinoSwitch(value: this.defValue, onChanged: (val){},);
  }
}
